package com.tiemei.demo.spring.mvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class HelloWorldController {
	@RequestMapping("/helloWorld")
	public String helloWorld(Model model){
		model.addAttribute("message", "Hello World!");
		return "helloWorld";
	}
	
	@RequestMapping("/helloVM")
	public String helloVM(Model model) {
		model.addAttribute("message", "Hello Velocity!");
		return "helloVM";
	}
}
